package com.example.medicalrecord.AggregationModule.sickness.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class SicknessQuery {
    @ApiModelProperty(value = "病史ID")
    private Long id;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "就诊时间")
    private Date treatTime;
    @ApiModelProperty(value = "医生名")
    private String physician;
    @ApiModelProperty(value = "住院状态 1住院 0未住院")
    private String inpatientStatus;
//    病人姓名
    @ApiModelProperty(value = "病人姓名")
    private String patientName;
//    根据患者姓名查询的患者id
    @ApiModelProperty(value = "患者id")
    private Long patientId;
    //前端第一步:查询数据之前需要把当前页码以及每页显示多少条传给服务器
    //searchForm.value.pageSize = currentSize.value;
    //searchForm.value.pageNum = currentPage.value;
    //前端传入分页参数  当前页面展示条数
    @ApiModelProperty(value = "每页记录数")
    private Integer pageSize;
    //前端传入分页参数  当前查询页数
    @ApiModelProperty(value = "页码")
    private Integer pageNum;
}
